package com.example.agent;

import java.lang.instrument.Instrumentation;

/**
 * @author csp 2023-08-16
 */
public class AgentMain {
    // premain()函数中注册MyClassFileTransformer转换器
    public static void premain (String agentArgs, Instrumentation instrumentation) {
        System.out.println("premain方法");
        instrumentation.addTransformer(new MyClassFileTransformer(), true);
    }
}
